import Vue from "vue";
import Router from "vue-router";
//import HelloWorld from '@/components/HelloWorld'
import index from "../pages/index";
import Diet from "../pages/Diet";
import DietList from "../pages/DietList";
import AddDiet from "../pages/AddDiet";
import ChangeDiet from "../pages/ChangeDiet";
import Sports from "../pages/Sports";
import SportsList from "../pages/SportsList";
import AddSports from "../pages/AddSports";
import UpdateSports from "../pages/UpdateSports";
import Medicine from "../pages/Medicine";
import UpdateMedicine from "../pages/UpdateMedicine";
import MedicineList from "../pages/MedicineList";
import AddMedicine from "../pages/AddMedicine";
import MedicineReminder from "../pages/MedicineReminder";
import Sign from "../pages/Sign";

Vue.use(Router);

export default new Router({
  // base: "/SmartMachine/",
  // mode:"history",
  routes: [
    {
      path: "/",
      name: "index",
      component: index
    },
    {
      path: "/diet",
      name: "Diet",
      component: Diet
    },
    {
      path: "/sign",
      name: "Sign",
      component:Sign
    },
    {
      path: "/dietList",
      name: "DietList",
      component: DietList
    },
    {
      path: "/addDiet",
      name: "AddDiet",
      component: AddDiet
    },
    {
      path: "/changeDiet",
      name: "ChangeDiet",
      component: ChangeDiet
    },
    {
      path: "/sports",
      name: "Sports",
      component: Sports
    },
    {
      path: "/sportsList",
      name: "SportsList",
      component: SportsList
    },
    {
      path: "/addSports",
      name: "AddSports",
      component: AddSports
    },
    {
      path: "/updateSports",
      name: "UpdateSports",
      component: UpdateSports
    },
    {
      path: "/medicine",
      name: "Medicine",
      component: Medicine
    },
    {
      path: "/addMedicine",
      name: "AddMedicine",
      component: AddMedicine
    },
    {
      path: "/medicineList",
      name: "MedicineList",
      component: MedicineList
    },
    {
      path: "/updateMedicine",
      name: "UpdateMedicine",
      component: UpdateMedicine
    },
    {
      path: "/medicineReminder",
      name: "MedicineReminder",
      component: MedicineReminder
    }
  ]
});
